<template>
	<view>
		<u-sticky bgColor="#a3d8f5">
			<view class="mainpadding" :style="{paddingTop:menutop+'rpx'}">
				<view class="flexleft">
					<image src="@/static/image/system/hsz.png" class="hszclass" mode=""></image>
					<view class="xiaobai fonweight" style="font-size: 35rpx;">红十字基金会“孤寡老人大病救助基金”</view>
				</view>
				<view class="margin_top flexbetween">
					<u-icon name="arrow-left" color="#fff" size="24" @click="backpage()"></u-icon>
					<view class="xiaobai fonweight sanshier" style="font-size: 32rpx;">专家详情</view>
					<image src="@/static/image/system/list.png" mode="" class="topliclass" @click="toplistfn"></image>
				</view>
			</view>
		</u-sticky>
		<view class="mainpadding">
			<view class="mainpadding flexleft">
				<image :src="dataAll.image_text" class="headimg margin_right3" mode=""></image>
				<view class="">
					<view class="xiaohei fonweight" style="font-size: 40rpx;">{{dataAll.name}}</view>
					<view class="xiaohui smalltext margin_top">
						<text class="margin_right3">科室：{{dataAll.ks}}</text>
						<text>职务：{{dataAll.zw}}</text>
					</view>
				</view>
			</view>
			<!-- <view class="mainpadding ffffff">
				<view class="flexleft">
					<view class="line margin_right3"></view>
					<view class="fonweight xiaohei titletext">资历</view>
				</view>
				<view class="margin_top">
					<view class="xiaohei ershiba">资历资历资历资历资历资历资历资历资历</view>
				</view>
			</view> -->
			<view class="mainpadding_top ffffff">
				<view class="flexleft">
					<view class="line margin_right3"></view>
					<view class="fonweight xiaohei titletext">医生介绍</view>
				</view>
				<view class="margin_top">
					<text class="xiaohei ershiba">{{dataAll.ysjs}}</text>
				</view>
			</view>
			<view class="mainpadding_top ffffff">
				<view class="flexleft">
					<view class="line margin_right3"></view>
					<view class="fonweight xiaohei titletext">擅长疾病</view>
				</view>
				<view class="margin_top">
					<text class="xiaohei ershiba">{{dataAll.scjb}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				// #ifdef H5
				menutop: 80,
				// #endif
				// #ifdef MP-WEIXIN
				menutop: 0,
				// #endif	
				listid:"",
				dataAll:{}
			}
		},
		onLoad(options) {
			// #ifdef MP-WEIXIN
			this.menutop = uni.getMenuButtonBoundingClientRect().top * 2
			// #endif
			this.listid = options.id
			this.getDetail()
		},
		methods: {
			getDetail(){
				httpRequest.request('/api/index/tyzjDetail', 'GET', {
					id: this.listid
				}).then(res => {
					this.dataAll = res.data
				}).catch(err => {})
			},
		}
	}
</script>

<style>
.line {
		background: linear-gradient(180deg, #6c78b9 30%, #ffffff 100%);
		width: 10rpx;
		height: 40rpx;
	}
</style>
